package com.team2.outpatient_sys.pojo;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 病历信息 实体类
 */
public class CaseHistory {
    // 病历id
    private Integer id;
    // 病人id
    private Integer patientId;
    // 诊断医生id
    private Integer doctorId;
    // 就诊科室id
    private Integer deptId;
    // 开具的处方id
    private Integer prescriptionId;
    // 是否住院
    private Boolean isStay;
    // 主诉
    private String chiefComplaint;
    // 现病史
    private String presentIllHistory;
    // 既往史
    private String pastHistory;
    // 个人史
    private String personalHistory;

    public CaseHistory() {
    }

    public CaseHistory(Integer id, Integer patientId, Integer doctorId, Integer deptId, Integer prescriptionId, Boolean isStay, String chiefComplaint, String presentIllHistory, String pastHistory, String personalHistory) {
        this.id = id;
        this.patientId = patientId;
        this.doctorId = doctorId;
        this.deptId = deptId;
        this.prescriptionId = prescriptionId;
        this.isStay = isStay;
        this.chiefComplaint = chiefComplaint;
        this.presentIllHistory = presentIllHistory;
        this.pastHistory = pastHistory;
        this.personalHistory = personalHistory;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPatientId() {
        return patientId;
    }

    public void setPatientId(Integer patientId) {
        this.patientId = patientId;
    }

    public Integer getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Integer doctorId) {
        this.doctorId = doctorId;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public Integer getPrescriptionId() {
        return prescriptionId;
    }

    public void setPrescriptionId(Integer prescriptionId) {
        this.prescriptionId = prescriptionId;
    }

    @JsonProperty(value = "isStay")
    public Boolean getStay() {
        return isStay;
    }

    @JsonProperty(value = "isStay")
    public void setStay(Boolean stay) {
        isStay = stay;
    }

    public String getChiefComplaint() {
        return chiefComplaint;
    }

    public void setChiefComplaint(String chiefComplaint) {
        this.chiefComplaint = chiefComplaint;
    }

    public String getPresentIllHistory() {
        return presentIllHistory;
    }

    public void setPresentIllHistory(String presentIllHistory) {
        this.presentIllHistory = presentIllHistory;
    }

    public String getPastHistory() {
        return pastHistory;
    }

    public void setPastHistory(String pastHistory) {
        this.pastHistory = pastHistory;
    }

    public String getPersonalHistory() {
        return personalHistory;
    }

    public void setPersonalHistory(String personalHistory) {
        this.personalHistory = personalHistory;
    }

    @Override
    public String toString() {
        return "CaseHistory{" +
                "id=" + id +
                ", patientId=" + patientId +
                ", doctorId=" + doctorId +
                ", deptId=" + deptId +
                ", prescriptionId=" + prescriptionId +
                ", isStay=" + isStay +
                ", chiefComplaint='" + chiefComplaint + '\'' +
                ", presentIllHistory='" + presentIllHistory + '\'' +
                ", pastHistory='" + pastHistory + '\'' +
                ", personalHistory='" + personalHistory + '\'' +
                '}';
    }
}
